/*
 * ResultManager.h
 *
 *  Created on: 14/10/2011
 *      Author: mario
 */

#ifndef RESULTMANAGER_H_
#define RESULTMANAGER_H_

#include "../Lista.h"
#include "../Conteo.h"
#include "../tree/Record.h"
#include "../tree/BPlusTree_CONST.h"
#include "../tree/BPlusTree.h"
#include "../../util/NodoLista.h"
#include "../../util/List.h"
#include "../encryption/KasiskiAttack.h"

class ResultManager {
public:
	ResultManager();
	virtual ~ResultManager();
	static Conteo* getConteoPorLista(Lista* lista);
	static Conteo* getConteoPorId(int id);
	static List* retriveConteos(int lista, int eleccion, int distrito);
	static int saveConteo(Conteo* conteo,bool save);
	static int getReportValue(int distrito, int eleccion, int lista);
	static void writeReportFile(stringstream *ss);
	static string readReportFile();
	static string readEncryptedReportFile();
	static void kasiskiAttack();
};

#endif /* RESULTMANAGER_H_ */
